<?php
declare(strict_types=1);

namespace app\common\validate;

use think\Validate;

/**
 * | Notes：用户模型
 * +----------------------------------------------------------------------
 * | PHP Version 7.2+
 * +----------------------------------------------------------------------
 * | Copyright (c) 2011-2020 https://www.xxq.com.cn, All rights reserved.
 * +----------------------------------------------------------------------
 * | Author: 和好 <389123492@qq.com>
 * +----------------------------------------------------------------------
 * | Date: 2021/3/14 0:18
 * +----------------------------------------------------------------------
 */
class MemberBind extends Validate
{
    // 验证规则
    protected $rule = [
        'mobile' => 'mobile',
        'email'  => 'email',
    ];

    protected $message = [
        'mobile.mobile' => '手机号格式不正确',
        'email.email'   => '邮箱格式不正确',
    ];
}